<div class="navbar">
  <div class="navbar-inner">
    <ul class="nav pull-right">
      <li>
        <a href="" role="button">
          <?php echo is_file('.' . $admin['avatar']) ? '<img style="width:20px;height: 20px;border-radius: 50%;object-fit: cover;" src="' . $admin['avatar'] . '">' : '<i class="icon-user"></i>' ?>
          <?php echo $admin['username']; ?>
        </a>
      </li>
      <li>
        <a href="index.php?action=logout" onclick="return confirm('是否确认退出当前账号？')" class="hidden-phone visible-tablet visible-desktop" role="button">Logout</a>
      </li>
    </ul>
    <a class="brand" href="index.php"><span class="second">Student</span></a>
  </div>
</div>